<template>
  <div>
    <el-dialog :title="title" :visible.sync="dialogFormVisible">
      <el-form :model="form">
        <el-form-item label="Name" :label-width="formLabelWidth">
          <el-input v-model="form.name" autocomplete="off"></el-input>
        </el-form-item>
        <el-form-item label="Age" :label-width="formLabelWidth">
          <el-input v-model="form.age" autocomplete="off"></el-input>
        </el-form-item>
        <el-form-item label="Address" :label-width="formLabelWidth">
          <el-input v-model="form.address" autocomplete="off"></el-input>
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button @click="quxiaofn">取 消</el-button>
        <el-button type="primary" @click="newfn">确 定</el-button>
      </div>
    </el-dialog>
  </div>
</template>
<script>
export default {
  props:["title","dialogFormVisible","form","formLabelWidth"],
  name: "Mydialog",
  methods:{
      newfn(){
          this.$emit("cuifn")
      },
      quxiaofn(){
          this.$emit("quxiaofn")
      }
  }
};
</script>
<style scoped>
</style>
